<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Sample - CKEditor</title>
	<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
	<script type="text/javascript" src="ckeditor.js"></script>
</head>
<body>

				<textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://www.fckeditor.net/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
				<script type="text/javascript">
				//<![CDATA[
					CKEDITOR.replace('editor1');
	          CKEDITOR.on('dialogDefinition', function(ev){
			     	  var dialogName = ev.data.name;
				      var dialogDefinition = ev.data.definition;
							if (dialogName == 'image'){		
								dialogDefinition.removeContents('advanced');
							}
							if (dialogName == 'link'){		
								dialogDefinition.removeContents('advanced');
							}
	        });
				//]]>
				</script>
		
</body>
</html>

